package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.activity.ActivityDisperseGoldInfo;
import com.yanqu.road.entity.activity.ActivityDisperseGoldRecord;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class UserActivityDisperseGoldBussiness {

    public static Map<Long, ActivityDisperseGoldInfo> getDisperseGoldMap() {
        return DaoHelper.getActivityDisperseGoldDaoImpl().getDisperseGoldMap();
    }

    public static boolean addDisperseGold(ActivityDisperseGoldInfo disperseGoldInfo) {
        return DaoHelper.getActivityDisperseGoldDaoImpl().add(disperseGoldInfo);
    }

    public static boolean updateDisperseGold(ActivityDisperseGoldInfo disperseGoldInfo) {
        return DaoHelper.getActivityDisperseGoldDaoImpl().update(disperseGoldInfo);
    }

    public static boolean addDisperseGoldRecord(ActivityDisperseGoldRecord record) {
        return DaoHelper.getActivityDisperseGoldRecordDaoImpl().add(record);
    }

    public static ActivityDisperseGoldRecord getMaxDisperseGoldRecordMap(long userId) {
        return DaoHelper.getActivityDisperseGoldRecordDaoImpl().getMaxDisperseGoldRecord(userId);
    }
}
